package com.example;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/***
 * 调用nacos-provider服务提供者
 */
@FeignClient(name = "nacos-provider")
public interface ProviderClient {

    @GetMapping("/echo/{string}")
    String sayHello(@PathVariable String string);

}